const fs = require('fs')

let config = JSON.parse(fs.readFileSync('config.json','utf-8'))
let email_user = config.email.user;
let email_pass = config.email.pass;

let mysql_host = config.mysql.host;
let mysql_port = config.mysql.port;

let redis_host = config.redis.host;
let redis_port = config.redis.port;
let redis_passwd = config.redis.passwd;

let code_prefix = "code_"

module.exports = {email_user,email_pass,code_prefix,redis_port,redis_passwd,mysql_host,mysql_port,redis_host}
